package com.hlbspringcloud.springsecuritytoken.service;

import com.hlbspringcloud.springsecuritytoken.entity.User;
import com.hlbspringcloud.springsecuritytoken.mapper.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author huanglibin
 * @Project spring-security-token
 * @Description 操作用户业务
 * @Date 2020-04-16-21-26-48
 * @Version 1.0
 */
@Service
public class UserService {
    @Autowired
    private UserRepository userRepository;

    public void save(User user){
        user.setId(1);
        userRepository.save(user);
    }
}
